<?php
class relationDeletor
{
    
    public static function delete(Datatype_relation $fObj)
    {
        
        $phrases = array();
        $phrases[] = "DELETE FROM edo_dynamic_relation WHERE typeid = {$fObj->getOwner()->getTypeid()} AND name = '{$fObj->getName()}'";
        $phrases[] = "DELETE FROM edo_dynamic_relationdata WHERE typeid = {$fObj->getOwner()->getTypeid()} AND name = '{$fObj->getName()}'";

      
        
        foreach($phrases as $phrase)
        {
            $fObj->getOwner()->ldb->exec($phrase);
        }
        

        return true;        
        
        
    }
    
    
}
